package cn.yougou.dto;

import cn.yougou.pojo.YgCommodity;
import cn.yougou.pojo.YgCommodityProduct;
import cn.yougou.pojo.YgCommoditySpecification;

import java.io.Serializable;

/**
 * 商品上架接收数据
 */
public class CommodityAllinone implements Serializable{

    /**
     * 商品信息
     */
    private YgCommodity commodity;

    /**
     * 商品规格
     */
    private YgCommoditySpecification[] specifications;

    /**
     * 商品规格组合
     */
    private YgCommodityProduct[] products;


    //这里！！！后期补上一个商品参数


    public YgCommodity getCommodity() {
        return commodity;
    }

    public void setCommodity(YgCommodity commodity) {
        this.commodity = commodity;
    }

    public YgCommoditySpecification[] getSpecifications() {
        return specifications;
    }

    public void setSpecifications(YgCommoditySpecification[] specifications) {
        this.specifications = specifications;
    }

    public YgCommodityProduct[] getProducts() {
        return products;
    }

    public void setProducts(YgCommodityProduct[] products) {
        this.products = products;
    }
}
